﻿using Ordering.Domain.SeedWork;

#pragma warning disable CS8618
namespace Ordering.Domain.Aggregate
{
    public class OrderItem : Entity
    {
        public override string Id { get; } 

        public string GoodsName { get; }

        public int GoodsNumber { get; }

        public decimal SalesPrice { get; }

        protected OrderItem()
        {

        }

        public OrderItem(int goodsNumber, decimal salesPrice, string goodsName)
        {
            GoodsNumber = goodsNumber;
            SalesPrice = salesPrice;
            GoodsName = goodsName;
        }
    }
}
